/// WriteoffTeamAvailableBalanceUpdateDto
class WriteoffTeamAvailableBalanceUpdateDto {
  /// 核销代理团队ID
  final int agencyTeamId;
  /// 预授权额度，单位美元
  final int? authAmount;
  /// 当前账户余额，单位美元
  final String? currentBalance;

  WriteoffTeamAvailableBalanceUpdateDto({
    required this.agencyTeamId,
    this.authAmount,
    this.currentBalance,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['agencyTeamId'] = agencyTeamId;
    if (authAmount != null) data['authAmount'] = authAmount;
    if (currentBalance != null) data['currentBalance'] = currentBalance;
    return data;
  }

  factory WriteoffTeamAvailableBalanceUpdateDto.fromJson(Map<String, dynamic> json) {
    return WriteoffTeamAvailableBalanceUpdateDto(
      agencyTeamId: json['agencyTeamId'],
      authAmount: json['authAmount'],
      currentBalance: json['currentBalance'],
    );
  }
}